<div class="wrapper" style="box-shadow:0px 1px 2px #000;position:relative;
	background-image: -o-linear-gradient(to bottom, #700 0%, #d00 100%);
	background-image: -moz-linear-gradient(to bottom, #700 0%, #d00 100%);
	background-image: -webkit-linear-gradient(to bottom,#700 0%, #d00 100%);
	background-image: -ms-linear-gradient(to bottom, #700 0%, #d00 100%);
	background-image: linear-gradient(to bottom,#700 0%, #d00 100%);opacity:0.9;
	-webkit-animation: appear 1.2s  ease-in-out 1.2s  backwards;-moz-animation: appear 1.2s ease-in-out 1.2s backwards;
">
	<center>
		<div class="menubar">
			<ul id="level1">
			<?php
				include("../model/main.php");
				//os::gzip();
				$mn = new menus();
				if(!$menus) $menus = $mn->menu;
				os::sessionLifeTime('mucluc',43200);
				$_SESSION['ipuser'] = checks::checkIPClient();
			?>
				<li><a href="gioithieu.php">GIỚI THIỆU</a></li>
				<?php 	
					foreach($menus as $x){ 
				?>
						<li><a><?php echo $x[1]; ?></a>
							<ul id="level2">
								<?php
									$machuyenmuc ;
									switch($x[0]){
										case 1: {$machuyenmuc  = "tt" ;break;}
										case 2: {$machuyenmuc = "pk" ;break;}
										case 3: {$machuyenmuc = "ld" ;break;}
										case 4: {$machuyenmuc = "mvb" ;break;}
										case 5: {$machuyenmuc = "ddt" ;break;}
										case 6: {$machuyenmuc = "dgd" ;break;}
										case 7: {$machuyenmuc = "bds" ;break;}
										case 8: {$machuyenmuc = "dv" ;break;}
										default : {$machuyenmuc = NULL ;break;}
									}
									$nhomsp = query::nhomsanpham($machuyenmuc);
									if($nhomsp){
										foreach($nhomsp as $y){
											$tennhomsp = convertViText::stripUnicode($y[1]);	
											$nsp = strtolower($machuyenmuc.$tennhomsp);
								?>
											<li><?php echo $y[1]; ?> 
												<ul id="level3">
													<?php				
														$phanloai = query::phanloaisanpham($nsp);
														if($phanloai){
															foreach($phanloai as $z){
																$phanloaisp = strtolower(convertViText::stripUnicode($z));
													?>
																<li><a href="chuyenmuc.php?cm=<?php echo $nsp; ?>&pl=<?php echo $phanloaisp ; ?>" > <?php echo $y[1]." ".$z ;?></a></li>
													<?php
															}
														}
													?>
												</ul>
											</li>
								<?php
											
										}
									}
								?>
							</ul>
						</li>
				<?php 
					} 
				?>
			</ul>	
		</div>
	</center>
</div>
<div class="wrapper">
	<center>
		<div class="taikhoan"> 
			<a href="javascript:" onclick="new controls().view('registerform');">ĐĂNG KÝ NGAY</a>
		</div>
		<?php 
			include("../view/registerform.php");
			include("../view/loginform.php");
		?>
	</center>	
</div>	
